package edu.tgc.entity.student;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import org.springframework.data.annotation.CreatedBy;

import edu.tgc.entity.system.BaseEntity;
import edu.tgc.entity.system.SysDept;
import edu.tgc.entity.system.SysUser;

@Entity
public class TbClass extends BaseEntity{
	//班级名称
	private String name;
	//入学年
	private Integer year;
	//上级部门
	private SysDept parentdept;
	//班主任
	private SysUser manager;
	//备注
	private String content;
	//在校
	private Boolean isUsed=true;
	
	public TbClass() {
		super();
	}
	public TbClass(UUID id) {
		super(id);
	}
	@Column(length=50)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@ManyToOne
	public SysDept getParentdept() {
		return parentdept;
	}
	public void setParentdept(SysDept parentdept) {
		this.parentdept = parentdept;
	}

	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Boolean getIsUsed() {
		return isUsed;
	}
	public void setIsUsed(Boolean isUsed) {
		this.isUsed = isUsed;
	}
	public Integer getYear() {
		return year;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	
	@CreatedBy
	@ManyToOne
	public SysUser getManager() {
		return manager;
	}
	public void setManager(SysUser manager) {
		this.manager = manager;
	}
	
	
}
